﻿#include <stdio.h>

void Squeeze(char s[], char c);

main()
{	    	   	   
    char a[80], c;

    gets(a);
    scanf("%c", &c);
    Squeeze(a, c);
    printf("%s\n", a);
}	    	   	   

void Squeeze(char s[], char c)
{	    	   	   
    int i, j;

    for (i = 0, j = 0; s[i] != '\0'; i++)
    {	    	   	   
        if (s[i] != c)
        {	    	   	   
            s[j] = s[i];
            j++;
        }
    }
    s[j] = '\0';
}	    	   	   

